package cn.edu.scau.cmi.liujianxun.client.fxUI.interProgramming;

import javafx.fxml.FXML;

import javafx.scene.control.Button;
import cn.edu.scau.cmi.liujianxun.interProgramming.Fruit;
import cn.edu.scau.cmi.liujianxun.interProgramming.Orange;
import javafx.event.ActionEvent;

import javafx.scene.control.TextArea;

public class InterProgrammingDemoController {
	@FXML
	private Button btShow;
	@FXML
	private TextArea textArea;

	// Event Listener on Button[#btShow].onAction
	@FXML
	public void btShowEvent(ActionEvent event) {
		Fruit o = new Orange();
		textArea.appendText(o.howToEat());
	}
}
